<% content_for :css do %>
  <%= stylesheet_link_tag 'users_index' %>
<% end %>
<% content_for :javascript do %>
<script>
  function show_or_hide_tools(link,tools_id)
  {
    if($(tools_id).style.display == '')
    {
      Effect.BlindUp(tools_id);
      link.innerHTML = '查看吐司';
    }
    else
    {
      Effect.BlindDown(tools_id);
      link.innerHTML = '隐藏吐司';
    }
  }
    
  function go_to(page_num)
  {
    $('page').value = page_num;
    searching();
  }
  
  function order_by(order,by)
  {
    $('order').value = order;
    $('by').value = by;
    <%= small_loading('order_bys', :only_img => true) %>
    searching();
  }  
  
  function by_fetion_version(fetion_version) {
    $('fetion_version').value = fetion_version;
    <%= small_loading('fetion_versions') %>
    searching();
  }
  
  function searching()
  {
    Try.these(function() {
      <%= remote_function :update => 'user_admin',
            :url => users_url,
            :method => :get,
            :with => "Form.serialize('search_form') + '&' +  Form.serialize('search_type_form')"
      %>
    }, function() {
     <%= remote_function :update => 'user_admin',
           :url => users_url,
           :method => :get,
           :with => "Form.serialize('search_form')"
      %>
    });
  }
</script>
<% end %>
<%= render :file => 'infos/_nav_bar.html' %>
<div id='user_admin'>
</div>
<% form_tag 'javascript:void(0);', :id => 'search_form'  do %>
  <%= hidden_field_tag :page %>  
  <%= hidden_field_tag :order %>
  <%= hidden_field_tag :by %>                
  <%= hidden_field_tag :fetion_version %>  
<% end %>
<script>
  searching();  
  <%= normal_loading('user_admin',:height => '500px') %>
</script>